package com.jewaton.auth.commons.util;

import com.jewaton.auth.commons.entity.District;
import com.jewaton.auth.commons.service.DistrictService;

import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

/**
 *
 * 地区表辅助类
 *
 */
public class DistrictListOnweb implements List<District>{
	
	private DistrictService districtService;

	public DistrictListOnweb(DistrictService districtService) {
		super();
		this.districtService = districtService;
	}

	@Override
	public int size() {
		return 0;
	}

	@Override
	public boolean isEmpty() {
		return false;
	}

	@Override
	public boolean contains(Object o) {
		return false;
	}

	@Override
	public Iterator<District> iterator() {
		List<District> li = districtService.getAllDistrict();
		return li.iterator();
	}

	@Override
	public Object[] toArray() {
		return null;
	}

	@Override
	public <T> T[] toArray(T[] a) {
		return null;
	}

	@Override
	public boolean add(District e) {
		return false;
	}

	@Override
	public boolean remove(Object o) {
		return false;
	}

	@Override
	public boolean containsAll(Collection<?> c) {
		return false;
	}

	@Override
	public boolean addAll(Collection<? extends District> c) {
		return false;
	}

	@Override
	public boolean addAll(int index, Collection<? extends District> c) {
		return false;
	}

	@Override
	public boolean removeAll(Collection<?> c) {
		return false;
	}

	@Override
	public boolean retainAll(Collection<?> c) {
		return false;
	}

	@Override
	public void clear() {
		
	}

	@Override
	public District get(int index) {
		return null;
	}

	@Override
	public District set(int index, District element) {
		return null;
	}

	@Override
	public void add(int index, District element) {
		
	}

	@Override
	public District remove(int index) {
		return null;
	}

	@Override
	public int indexOf(Object o) {
		return 0;
	}

	@Override
	public int lastIndexOf(Object o) {
		return 0;
	}

	@Override
	public ListIterator<District> listIterator() {
		return null;
	}

	@Override
	public ListIterator<District> listIterator(int index) {
		return null;
	}

	@Override
	public List<District> subList(int fromIndex, int toIndex) {
		return null;
	}

	
}
